package com.ruoyi.config.manager.domain;

import javax.validation.constraints.NotNull;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.Entity;

/**
 * 身份对象 mg_identity
 * 
 * @author ruoyi
 * @date 2023-12-20
 */
public class MgIdentity extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 身份名称 */
    @Excel(name = "身份类型")
    @NotNull
    private String identityName;

    /** 0 弃用 1 启用 */
    @Excel(name = "0 弃用 1 启用")
    private Byte enable;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setIdentityName(String identityName) 
    {
        this.identityName = identityName;
    }

    public String getIdentityName() 
    {
        return identityName;
    }
    public void setEnable(Byte enable) 
    {
        this.enable = enable;
    }

    public Byte getEnable() 
    {
        return enable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("identityName", getIdentityName())
            .append("enable", getEnable())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
